package nl.hanze.designpatterns.domain;

import java.io.Serializable;
import java.util.Random;

import nl.hanze.designpatterns.res.builder.Identifiable;

public class Answer implements Identifiable, Serializable, FAQcomponent {
	
	private String answer;
	private Question question;
	//private Answer nextanswer;
	
	private final int objectID;
	
	
	
	

	
	 public Answer(String answer, int objectID){
		 this.answer=answer;
		 this.objectID=objectID;
	 }

	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}
	
	public void setQuestion(Question question){
		this.question=question;
	}
	
	public Question getQuestion(){
		return question;
	}
//	public void setNextAnswer(Answer answer){
//		this.nextanswer =answer;
//	}

	@Override
	public int getObjectID() {
		return objectID;
	}
}
